﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSA.Policlinic.UI.WFAplication.DoctorWCF.RegistryServiceReference
{
    public partial class Patient : BusinessObjectBase
    {
        private string _surname;
        private string _name;
        private string _middlename;
        private string _sex;
        private DateTime _birth;
        private Address _Address;
        private InsurancePolis _InsurancePolis;
    

        public Patient()
        {
            this._Address = default(Address);
            this._InsurancePolis = default(InsurancePolis);
        }

        public Patient(int id, bool isDeleted, string surname, string name, string middlename, string sex, DateTime birth,
            Address address, InsurancePolis insurancePolis):base(id, isDeleted)
        {
            _surname = surname;
            _name = name;
            _middlename = middlename;
            _sex = sex;
            _birth = birth;
            _Address = address;
            _InsurancePolis = insurancePolis;
        }

        public Patient(string surname, string name, string middlename, string sex, DateTime birth,
            Address address, InsurancePolis insurancePolis)
        {
            _surname = surname;
            _name = name;
            _middlename = middlename;
            _sex = sex;
            _birth = birth;
            _Address = address;
            _InsurancePolis = insurancePolis;
        }



      

    


      

      

        public override string ToString()
        {
            return String.Format("{0} {1} {2}",Surname, Name, Middlename);
        }
    }
	
}
